package com.example.mq.config;

import lombok.Data;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * mqtt参数连接对象
 */
@ConfigurationProperties(prefix = "iot.mqtt")
@Configuration
@Data
public class MqttParamConfig {
    /**
     * 服务端地址
     */
    private String brokerUrl;

    /**
     * 客户端id
     */
    private String clientId;
    /**
     * 配置链接项
     */
    private MqttConnectOptions options;


}
